# # /bin/bash
# export DATASET_HOME=/home/neu/hutao/2019-01-10-11-46-21-radar-oxford-10k
# # export DATASET_HOME=/home/neu/hutao/2019-01-10-11-46-21-radar-oxford-10k/test
export HISTORY_NUMBER=2
export PROCESSED_HOME=$DATASET_HOME
export USED_DATASET=$PROCESSED_HOME/processed
export MVDNET_HOME=/home/aero/mvdnet/MVDNet
export CONFIG_HOME=$MVDNET_HOME/configs


function eval_cfg_gen(){
    echo "_BASE_: "./train_cfg_h$HISTORY_NUMBER$1.yaml"" >> eval_cfg_h$HISTORY_NUMBER$1.yaml
    cat eval_tmp.yaml >> eval_cfg_h$HISTORY_NUMBER$1.yaml
    echo "  WEIGHTS: "./h2_weight/output-h$HISTORY_NUMBER$1/mvdnet/model_final.pth"" >> eval_cfg_h$HISTORY_NUMBER$1.yaml

}

eval_cfg_gen "-0"
eval_cfg_gen "+1"
eval_cfg_gen "-1"
eval_cfg_gen "+2"
eval_cfg_gen "-2"
eval_cfg_gen "+5"
eval_cfg_gen "-5"
# TMP_STR=`tail dir_gen.sh -n 1`
# TMP_STR=`head dir_gen.sh -n 2`
# echo $TMP_STR
# mail -s "test" neuhutao@gmail.com <<< "$TMP_STR"